<?php
namespace Config;
/**
 * mysql配置
 * @author walkor
 */
class Db
{
    /**
     * 数据库的一个实例配置，则使用时像下面这样使用
     * $user_array = Db::instance('user')->select('name,age')->from('users')->where('age>12')->query();
     * 等价于
     * $user_array = Db::instance('user')->query('SELECT `name`,`age` FROM `users` WHERE `age`>12');
     * @var array
     */

    public static $db1 = array(
        'host' => 'f1ccr.megowx.com',
        'port' => 3306,
        'user' => 'ccr',
        'password' => 'Aitrip123',
        'dbname' => 'ccr',
        'charset' => 'utf8',
    );

    // 数据库实例2
    public static $db2 = array(
        'host' => '127.0.0.1',
        'port' => 3306,
        'user' => 'root',
        'password' => '',
        'dbname' => 'fastmego',
        'charset' => 'utf8',
    );

}